Release 10.1A: OpenEdge Deployment:
Managing 4GL Applications
OUTPUT TO statement
By default, all OpenEdge output is directed to the terminal. The
OUTPUT TOstatement allows an application to redirect output to other output devices. Following is a partial syntax example of theOUTPUT TOstatement:
Use the
OUTPUT TOstatement with thePRINTERoption to send output to the default print device on the current operating system. For example:
On UNIX, the
OUTPUT TO PRINTERstatement sends output to the default spooler. To use a spooler other than the default, start OpenEdge using the Printer (-o) startup parameter.In Windows, the
OUTPUT TO PRINTERstatement sends output to the printer defined in default print context. The default print context is the set of values that defines the default printer and setup for that printer in Windows. If there is no default print context, OpenEdge uses the printer control settings from the current environment.Use the
SYSTEM-DIALOG PRINTER-SETUPstatement to display the Windows Print dialog box and let the user change the default print context at runtime. Use thePRINTER-NAMEattribute of theSESSIONsystem handle to change the printer name in the default print context without user intervention. You can change the system default printer from the Windows Control Panel.Use the
OUTPUT TO PRINTERstatement with its various options to override the default print context for a specific print job. For example, send output to a printer other than the default printer by using the following syntax:
OpenEdge assumes that all printers can handle hard-coded form feed characters (CTRL+L or 0C Hex). The
OUTPUT TO PRINTERstatement automatically paginates OpenEdge output on the default printer. To paginate output on a printer, other than the default printer, use theOUTPUT TO PRINTERstatement with thePAGEDorPAGE-SIZEoption.Use the Printer (-o) startup parameter to specify a default printer to use when processing the
OUTPUT TO PRINTERstatement in procedures. The specified printer must be set up on the current operating system.For a complete description of the
OUTPUT TO PRINTERstatement, theSYSTEM-DIALOG PRINTER-SETUPstatement, and theSESSIONsystem handle, see OpenEdge Development: Progress 4GL Reference . For more information about the Printer (-o) startup parameter, see OpenEdge Deployment: Startup Command and Parameter Reference .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |